/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.info.runninginfo.exception;

import android.content.Context;
import com.info.runninginfo.ExceptionManager;

public class GlobalHandler implements Thread.UncaughtExceptionHandler {
	private Context context = null;

	public GlobalHandler(Context paramContext) {
		this.context = paramContext;
	}

	public void uncaughtException(Thread paramThread, Throwable paramThrowable) {
		Exception localException = new Exception(
				"uncaughtException: unknown Exception!");
		localException.setStackTrace(paramThrowable.getStackTrace());
		new ExceptionManager().saveException(this.context, super.getClass(),
				localException);
	}
}